const {sign,verify} = require('jsonwebtoken');
const SECRET= 'jiagou';
//let token = sign({username:'zhufeng'},SECRET);
//console.log(token);
let token = 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MSwidXNlcm5hbWUiOiJ6aHVmZW5nIiwicGFzc3dvcmQiOiJqaWFnb3UiLCJlbWFpbCI6bnVsbCwicGhvbmUiOm51bGwsImdlbmRlciI6bnVsbCwiYmlydGhkYXkiOm51bGwsImFkZHJlc3MiOm51bGwsImlhdCI6MTU1MjM5MzUwMn0.FQo0RARB-6Riryhiqi0uGH_MEeJLsD1CvK5HWSP4_N4';
let result = verify(token,SECRET);
console.log(result);
console.log(Date.now(),1552393024);